<template>
    <div id="app">
        <router-view :windowsHeight="windowsHeight"></router-view>
    </div>
</template>

<script>
export default {
    data() {
        return {
            windowsHeight: 0,
        };
    },
    name: "App",
    mounted(){
      //获取浏览器宽度
        let h = window.innerHeight
        this.windowsHeight = h;
    }
};
</script>

<style>
* {
    margin: 0;
    padding: 0;
}

#app {
    height: auto;
    font-family: KaiTi;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
}
</style>
